import { RouterMount, createRouter  } from "uni-simple-router";

const router = createRouter({
	platform: process.env.VUE_APP_PLATFORM,
	routes: [
		{
			path: "/pages/test/test",
			beforeEnter: (to, form, next) => {
				console.log("=============user==============");
				// next();
			}
		},
		...ROUTES
	]
});
console.log("*************ROUTES=", ROUTES)


router.beforeEach((to, from, next) => {
	next();
})


router.afterEach((to, from, next) => {
	console.log("跳转结束")
})

export {
	router,
	RouterMount
}